package net.web.service.impl;

import net.web.common.utils.PageInfo;
import net.web.dao.BlogDao;
import net.web.entity.Blog;
import net.web.entity.Vo.BlogVo;
import net.web.service.BlogService;

public class BlogServiceImpl implements BlogService {

    private BlogDao blogDao = new BlogDao();

    @Override
    public PageInfo<BlogVo> pageList(Integer pageNo, Integer pageSize, Blog blog) {
        return blogDao.pagelist(pageNo, pageSize, blog);
    }

    @Override
    public boolean insert(Blog blog) {
        return blogDao.insert(blog);
    }

    @Override
    public boolean delete(int id) {
        return blogDao.delete(id);
    }

    @Override
    public boolean update(Blog blog) {
        return blogDao.update(blog);
    }

    @Override
    public PageInfo<BlogVo> pageList(int pageNo, int pageSize, Blog blog) {
        return blogDao.pagelist(pageNo, pageSize, blog);
    }

    @Override
    public Blog getBlogByTitle(String title) {
        return null;
    }
}